package vg.modules.opener;

import java.util.List;

import vg.modules.opener.system.SimpleOpener;
import vg.services.data_base_manager.interfaces.IModel;

public class CommandOpener {
	private static final String[] DEF_EXTENSIONS = {"graphml", "gml", "vgdb"};
	private static final SimpleOpener simpleOpener = new SimpleOpener();
	
	public static List<Integer> openFile(String fileName, IModel model) throws Exception {
		return simpleOpener.openFile(fileName, model);
	}
	public static String[] getAvailableExtensions() {
		return DEF_EXTENSIONS;
	}
	public static List<String> getOpenedFilesList() {
		return simpleOpener.getOpenedFilesList();
	}
}
